//
//  XYJWriteViewController.m
//  徙游记-01
//
//  Created by hcios on 2017/6/22.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJWriteViewController.h"

@interface XYJWriteViewController ()

@end

@implementation XYJWriteViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"写文章";
    self.view.backgroundColor = [UIColor whiteColor];
    [self setUpNavButton];
    // Do any additional setup after loading the view.
}

- (void)setUpNavButton {

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"退出" style:UIBarButtonItemStylePlain target:self action:@selector(exit)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"分享" style:UIBarButtonItemStylePlain target:self action:@selector(share)];
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];
}


- (void)exit {

    [self dismissViewControllerAnimated:YES completion:nil];
}


- (void)share {

    NSLog(@"点击分享");
}

@end
